<template>
		<view class="" v-if="isRender">
				<view class="u-p-50">
					<u-parse :html="config.agreement"></u-parse>
				</view>
		</view>
</template>
<script>
	export default {
		data() {
			return {
				isRender:false,
				config:[]
			}
		},
		onLoad(options) {
			let that = this;
			this.getPageData(function(){
				that.isRender = true;
			});
		},
		methods: {
			async getPageData(cb){
				let res = await this.$u.api.getPageData({page:"userAgreement"});
				this.config = res.data;
				typeof cb == 'function' && cb();
			}
		}
	}
</script>